package service;

public class Cat {
    private String name;
    private double age;
    public Cat(String name,double age){
        this.name=name;
        this.age=age;
    }
public void say(){
    System.out.println("猫的名称是"+this.getName()+"猫的年龄是："+this.getAge());
}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }
}
